package com.zhijian.warehouse.manage.enums;

import java.util.Objects;

public class BindEnum {
    /**
     * 业务编码前缀
     */
    public enum RF_ID {

        UNBIND(0, "解绑"),
        BIND(1, "绑定"),

        ;

        public Integer value;
        public String msg;


        RF_ID(Integer value, String msg) {
            this.value = value;
            this.msg = msg;
        }

        public static RF_ID getByValue(Integer value) {
            BindEnum.RF_ID[] flags = RF_ID.values();
            for (BindEnum.RF_ID flag : flags) {
                if (Objects.equals(flag.value, value))
                    return flag;
            }
            return null;
        }
    }
    /**
     * 业务编码前缀
     */
    public enum BRA_CODE {

        UNBIND(0, "解绑"),
        BIND(1, "绑定"),

        ;

        public Integer value;
        public String msg;


        BRA_CODE(Integer value, String msg) {
            this.value = value;
            this.msg = msg;
        }

        public static BRA_CODE getByValue(Integer value) {
            BindEnum.BRA_CODE[] flags = BRA_CODE.values();
            for (BindEnum.BRA_CODE flag : flags) {
                if (Objects.equals(flag.value, value))
                    return flag;
            }
            return null;
        }
    }
}
